package com.customization.unionpay.contract.job;

import com.customization.unionpay.contract.serivce.IContractProvisionService;
import com.customization.unionpay.contract.serivce.impl.ContractProvisionServiceImpl;
import com.engine.common.util.ServiceUtil;
import weaver.integration.logging.Logger;
import weaver.integration.logging.LoggerFactory;
import weaver.interfaces.schedule.BaseCronJob;


/**
 * @author mr_d
 * @Date 2024/8/12
 * 合同计提流程创建
 **/
public class ContractProvisionJob extends BaseCronJob {

    public static Logger log = LoggerFactory.getLogger("ContractProvisionJob", ContractProvisionJob.class.getName());

    private IContractProvisionService getContractProvisionService() {
        return ServiceUtil.getService(ContractProvisionServiceImpl.class);
    }

    @Override
    public void execute() {
        Integer pageSize = 10;
        getContractProvisionService().createContractProvision(pageSize);
    }
}
